/*********************/
/** RFID.java */
/*********************/
package atag.apps.mainApp;
import atag.j2mespecific.*;
import java.io.IOException;
import java.io.DataOutput;
import java.io.DataInput;



public class RFID implements Serializable {
	private int ID;
	private String RFID;
        public RFID(){
            //-- blank, for deserialization
        }

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public String getRFID() {
        return RFID;
    }

    public void setRFID(String RFID) {
        this.RFID = RFID;
    }


    public void serialize(DataOutput dg) throws IOException {
    //--Be careful to include all variables
        dg.writeInt(this.ID);
        dg.writeUTF(this.RFID);
        
    }
    public void deserialize(DataInput dg) throws IOException, 
        ClassNotFoundException, IllegalAccessException, InstantiationException {
    //--Be careful to maintain the same order as the method above
        this.ID = dg.readInt();
        this.RFID = dg.readUTF();     
    }
}
